package com.kitchen.ui.com.icon
{
	import com.kitchen.AbstractIcon;
	
	import flash.display.BitmapData;
	import flash.geom.Point;
	import flash.geom.Rectangle
	
	public class PiercedNumberIcon extends AbstractIcon
	{
		private static var bitdata:BitmapData;
		
		public function PiercedNumberIcon(bitmapData:BitmapData)
		{
			super(bitmapData);
		}
		
		override protected function cutRec(bitmapData:BitmapData):BitmapData{
			this.w = 198;
			this.h = 18;
			if(PiercedNumberIcon.bitdata == null){
				var rec:Rectangle = new Rectangle(25, 997, this.w, this.h);
				var cbitdata:BitmapData = new BitmapData(this.w, this.h);
				cbitdata.copyPixels(bitmapData, rec, new Point());
				PiercedNumberIcon.bitdata = cbitdata;
			}
			return PiercedNumberIcon.bitdata;
		}
	}
}